import { httpTwo } from '@/utils/http/axios';

// 获取table
export function getBusinessRecordList(params) {
  return httpTwo.request({
    url: '/merchantData/list',
    method: 'GET',
    params,
  });
}

// 新增商户
export function addMerchantData(params) {
  return httpTwo.request({
    url: '/merchantData',
    method: 'POST',
    params,
  });
}

// 修改商户
export function updateMerchantData(params) {
  return httpTwo.request({
    url: '/merchantData/edit',
    method: 'POST',
    params,
  });
}

// 转移商户
export function batchMerchat(params) {
  return httpTwo.request({
    url: '/merchantData/batch',
    method: 'POST',
    params,
  });
}

// 获取操作记录
export function getMerchantDataLogs(params) {
  return httpTwo.request({
    url: '/merchantData/logs',
    method: 'GET',
    params,
  });
}
